package com.forcht.client.handle.impl;

import com.forcht.client.Client;
import com.forcht.client.handle.ResponseHandler;
import com.forcht.common.domain.Response;
import org.springframework.stereotype.Component;

import javax.swing.*;

/**
 * Created by forcht on 2018/4/15.
 * 登录失败提示
 */
@Component("hintHandler.login_fail")
public class LoginFailHintHandler extends ResponseHandler {


    @Override
    public void handle(Response response, Client client) {
        JOptionPane.showMessageDialog(client.getLoginView(),
                "帐号或密码错误，请核实后重新登录!","登录提示", JOptionPane.ERROR_MESSAGE);
    }
}
